[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
MGETBYTE() (INTEGER)
Function
Get the next byte input from the modem.
Syntax
MGETBYTE() No arguments are required
Return Type & Value
INTEGER
Returns the value (0-255) of the next byte from the modem input buffer
or -1 if no bytes are pending.
Remarks
Any character may be received from the users modem. Normally PCBoard
will filter and convert strings (ESC sequences and DOORWAY codes)
automatically. However, sometimes this isn't desired and you need to
access the incoming bytes directly. This function will look directly
for incoming characters from the modem and return them as a value from
0 to 255. These numbers may be converted to characters with the CHR()
function if necessary.
Examples
INTEGER byte
WHILE (byte <> 27) DO
LET byte = MGETBYTE()
PRINTLN "The byte value is ",byte
ENDWHILE
See Also:
INKEY()
KINKEY()
MINKEY()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson